package com.company.huisuo.biz.dialog

import android.app.Activity
import com.company.huisuo.R
import com.company.huisuo.base.BaseCenterPopupView
import com.company.huisuo.biz.activity.ArtistRewardActivity
import com.company.huisuo.biz.bean.ArtistBean
import com.company.huisuo.databinding.DialogGameGroupRewardBinding

/**
 * 参与游戏组合打赏
 */
class GameGroupRewardDialog(
    activity: Activity, val click: () -> Unit
) : BaseCenterPopupView<DialogGameGroupRewardBinding>(
    activity
) {
    override val getLayoutId: Int
        get() = R.layout.dialog_game_group_reward
    override val getViewBinding: DialogGameGroupRewardBinding
        get() = DialogGameGroupRewardBinding.bind(contentView)

    override fun initData() {
        mBinding.ivClose.setOnClickListener {
            dismiss()
        }
        mBinding.tvOk.setOnClickListener {
            ArtistRewardActivity.start(activity, ArtistBean.ARTIST_1, true)
            dismiss()
        }
    }
}